package cn.jetpiece.cloud.joss.sdk.core.oss.model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 对象
 * </p>
 *
 * @author XuJZ
 * @since 2020-09-05
 */
public class PutObjectResult implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 分片上传返回的MD5信息
     */
    private JossPartEtag etag;

    /**
     * 预请求Token
     */
    private String jossToken;

    /**
     * 分片上传任务Id
     */
    private String uploadId;

    /**
     * UUID
     */
    private String id;

    /**
     * 用户UUID
     */
    private String accessorId;

    /**
     * 桶名
     */
    private String bucketName;

    /**
     * 对象名
     */
    private String objectName;

    /**
     * 对象大小(单位:字节)
     */
    private Long objectSize;

    /**
     * 内容类型
     */
    private String contentType;

    /**
     * 数据权限(1:私有,2:公共可读)
     */
    private Integer acl;

    /**
     * 服务商存储信息
     */
    private ProviderStorageMap providerStorageInfo;

    /**
     * 启用(1:是,0:否)
     */
    private Integer isEnable;

    /**
     * 新增时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 服务商地址
     */
    private String providerUrl;

    /**
     * 访问地址
     */
    private String url;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAccessorId() {
        return accessorId;
    }

    public void setAccessorId(String accessorId) {
        this.accessorId = accessorId;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getObjectName() {
        return objectName;
    }

    public void setObjectName(String objectName) {
        this.objectName = objectName;
    }

    public Long getObjectSize() {
        return objectSize;
    }

    public void setObjectSize(Long objectSize) {
        this.objectSize = objectSize;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public Integer getAcl() {
        return acl;
    }

    public void setAcl(Integer acl) {
        this.acl = acl;
    }

    public ProviderStorageMap getProviderStorageInfo() {
        return providerStorageInfo;
    }

    public void setProviderStorageInfo(ProviderStorageMap providerStorageInfo) {
        this.providerStorageInfo = providerStorageInfo;
    }

    public Integer getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(Integer isEnable) {
        this.isEnable = isEnable;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getProviderUrl() {
        return providerUrl;
    }

    public void setProviderUrl(String providerUrl) {
        this.providerUrl = providerUrl;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getJossToken() {
        return jossToken;
    }

    public void setJossToken(String jossToken) {
        this.jossToken = jossToken;
    }

    public String getUploadId() {
        return uploadId;
    }

    public void setUploadId(String uploadId) {
        this.uploadId = uploadId;
    }

    public JossPartEtag getEtag() {
        return etag;
    }

    public void setEtag(JossPartEtag etag) {
        this.etag = etag;
    }
}
